import React from 'react'
import { withRouter, NavLink } from 'react-router-dom'
import { observer, inject } from 'mobx-react'
@withRouter
@inject('kao')
@observer
class App extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
            num:2
        }
    }
    render() {
        return (
            <div className='zhun'>
                <h1>一·准备开始考试</h1>
                <input type="button" value='开始考试' onClick={()=>this.props.kao.setNum(2)} />
                <button onClick={()=>this.props.setNums(2)}>123</button>
            </div>
        )
    }
}
export default App